<%--
  Created by IntelliJ IDEA.
  User: Albert Lee
  Date: 2020/5/12
  Time: 18:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>get Cookie</title>
</head>
<body>
        <%
            Cookie[] cookies = request.getCookies();
            for(Cookie ck:cookies){
                if(ck.getName().equals("school")){
                    out.println(ck.getName() + ":" + java.net.URLDecoder.decode(ck.getValue()) + "<br>" );
                }else{
                    out.println(ck.getName() + ":" + ck.getValue() + "<br>" );
                }
            }
        %>
</body>
</html>
